package com.mdd.front.validate.order;

import com.mdd.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 还款日期修改记录参数
 * @author LikeAdmin
 */
@Data
@ApiModel("还款日期修改记录更新参数")
public class ChangeRepaymentDateRecordUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "编号")
    private Long id;

    @NotNull(message = "repaymentDateRecordNo参数缺失")
    @ApiModelProperty(value = "编码")
    private String repaymentDateRecordNo;

    @NotNull(message = "repaymentPlanNo参数缺失")
    @ApiModelProperty(value = "还款计划编码;仅在选定指定账单下生效")
    private String repaymentPlanNo;

    @NotNull(message = "selectBillingType参数缺失")
    @ApiModelProperty(value = "选择账单类型;选择账单：1、指定账单 2、所有逾期")
    private String selectBillingType;

    @NotNull(message = "newRepaymentDate参数缺失")
    @ApiModelProperty(value = "新还款日期")
    private String newRepaymentDate;

    @NotNull(message = "remarks参数缺失")
    @ApiModelProperty(value = "备注")
    private String remarks;
}
